﻿<%@ Page Title="" Language="C#" MasterPageFile="~/default.Master" AutoEventWireup="true" CodeBehind="ModifyGuestRecord.aspx.cs" Inherits="DelonixRegia.ModifyGuestRecord" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphPageTitle" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphTitle" runat="server">
    Modify Guest Record
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphSubtitle" runat="server">
    Change&nbsp; guest records in Delonix Regia
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphMain" runat="server">
     <asp:Panel ID="pnlFirstStep" runat="server">
        <div class="panel panel-default" id="firstStep" style="width: 800px; margin: 0 auto;">
        <div class="panel-heading">
            Find Guest Record
            <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
            </ajaxToolkit:ToolkitScriptManager>
            </div>

       <div class="panel-body">
            <div class="alert alert-danger" id="errorBox" style="display: none;">
            </div>
            <div class="alert alert-success" id="deleteSuccessBox" style="display: none;">
            </div>

            <table class="nav-justified">
                <tr>
                    <td class="text-right" colspan="7">
                        <table class="nav-justified" style="width: 600px; margin: 0 auto;">
                            <tr>
                                <td class="text-right" style="width: 117px">Guest Name:</td>
                                <td>&nbsp;</td>
                                <td style="width: 173px">
                                    <asp:TextBox ID="tbxGuestName2" runat="server" CssClass="form-control" Width="150px" MaxLength="255"></asp:TextBox>
                                </td>
                                <td class="text-center"><strong>OR</strong></td>
                                <td class="text-right" style="width: 184px">Guest Contact Number:</td>
                                <td>&nbsp;</td>
                                <td>
                                    <asp:TextBox ID="tbxGuestContactNo2" runat="server" CssClass="form-control" Width="108px" MaxLength="8"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td colspan="7" class="text-center">
                        <asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="btn btn-default btn-lg" OnClientClick="return verifySearch();" OnClick="btnSearch_Click" />
                    </td>
                </tr>
                </table>
        </div>
        </div>
         </asp:Panel>

        <asp:Panel ID="pnlSecondStep" runat="server" Visible="false">
        <div class="panel panel-default" id="secondStep" style="width: 800px; margin: 0 auto;">
        <div class="panel-heading">
            Modify Guest Records
            </div>

         <div class="panel-body">
            <div class="alert alert-danger" id="Div1" style="display: none;">
            </div>

               <table class="nav-justified">
                <tr>
                    <td>
                        <table style="width:350px;margin:auto;" class="nav-justified">
                            <tr>
                                <td class="text-right" style="width: 179px; height: 22px;">Guest ID:</td>
                                <td style="width: 15px">&nbsp;</td>
                                <td>
                                    <asp:TextBox ID="tbxGuestID" runat="server" CssClass="form-control" Width="42px" MaxLength="2" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="text-right" style="width: 179px; height: 22px;">First Name:</td>
                                <td style="width: 15px">&nbsp;</td>
                                <td>
                                    <asp:TextBox ID="tbxGuestFirstName" runat="server" CssClass="form-control" Width="187px" MaxLength="15"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="text-right" style="width: 179px; height: 22px;">Last Name:</td>
                                <td style="width: 15px">&nbsp;</td>
                                <td>
                                    <asp:TextBox ID="tbxGuestLastName" runat="server" CssClass="form-control" Width="187px" MaxLength="15"></asp:TextBox>
                                </td>
                            </tr>
                             <tr>
                                <td class="text-right" style="width: 179px; height: 22px;">Number of Adults:</td>
                                <td style="width: 15px">&nbsp;</td>
                                <td>
                                    <asp:TextBox ID="tbxGuestAdultNo" runat="server" CssClass="form-control" Width="42px" MaxLength="2"></asp:TextBox>
                                </td>
                            </tr>
                             <tr>
                                <td class="text-right" style="width: 179px; height: 22px;">Number of Childrens:</td>
                                <td style="width: 15px">&nbsp;</td>
                                <td>
                                    <asp:TextBox ID="tbxGuestChildrenNo" runat="server" CssClass="form-control" Width="42px" MaxLength="2"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="text-right" style="width: 179px; height: 22px;">Contact Number:</td>
                                <td style="width: 15px">&nbsp;</td>
                                <td>
                                    <asp:TextBox ID="tbxGuestContactNumber" runat="server" CssClass="form-control" Width="187px" MaxLength="8"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="text-right" style="width: 179px; height: 22px;">Email Address:</td>
                                <td style="width: 15px">&nbsp;</td>
                                <td>
                                    <asp:TextBox ID="tbxGuestEmailAddress" runat="server" CssClass="form-control" Width="187px" MaxLength="255"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="text-right" style="width: 179px; height: 22px;">Home Address:</td>
                                <td style="width: 15px">&nbsp;</td>
                                <td>
                        <asp:TextBox ID="tbxGuestHomeAddress" runat="server" CssClass="form-control" Height="56px" TextMode="MultiLine" Width="208px"></asp:TextBox>
                                </td>
                            </tr>
                            
                           
                            <tr>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                            </tr>
                           </table>
                    </td>
                </tr>
                   <tr>
                    <td colspan="6" style="height: 365px">
                        <fieldset>
                            <legend><small>Payment Details</small></legend>
                            <table class="nav-justified" style="width: 400px; margin: 0 auto;">
                                <tr>
                                    <td style="width: 143px">&nbsp;</td>
                                    <td style="width: 17px">&nbsp;</td>
                                    <td>&nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="text-right" style="width: 143px">Card Type:</td>
                                    <td style="width: 17px">&nbsp;</td>
                                    <td>
                                        <asp:DropDownList ID="ddlGuestCardType" runat="server" CssClass="form-control" Width="187px">
                                            <asp:ListItem>Mastercard</asp:ListItem>
                                            <asp:ListItem>Visa</asp:ListItem>
                                            <asp:ListItem>American Express</asp:ListItem>
                                         
                                     </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="text-right" style="width: 143px">Cardholder Name:</td>
                                    <td style="width: 17px">&nbsp;</td>
                                    <td>
                                        <asp:TextBox ID="tbxGuestCardholderName" runat="server" CssClass="form-control" Width="201px" OnTextChanged="tbxGuestCardNo_TextChanged"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="text-right" style="width: 143px">Card Number:</td>
                                    <td style="width: 17px">&nbsp;</td>
                                    <td>
                                        <asp:TextBox ID="tbxGuestCardNo" runat="server" CssClass="form-control" Width="200px" OnTextChanged="tbxGuestCardNo_TextChanged" MaxLength="16"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="text-right" style="width: 143px">Expiry Date:</td>
                                    <td style="width: 17px">&nbsp;</td>
                                    <td>
                                        <div class="form-inline">
                                        <asp:DropDownList ID="ddlGuestExpiryMonth" runat="server" CssClass="form-control" Width="82px" >
                                            <asp:ListItem>-</asp:ListItem>
                                            <asp:ListItem>1</asp:ListItem>
                                            <asp:ListItem>2</asp:ListItem>
                                            <asp:ListItem>3</asp:ListItem>
                                            <asp:ListItem>4</asp:ListItem>
                                            <asp:ListItem>5</asp:ListItem>
                                            <asp:ListItem>6</asp:ListItem>
                                            <asp:ListItem>7</asp:ListItem>
                                            <asp:ListItem>8</asp:ListItem>
                                            <asp:ListItem>9</asp:ListItem>
                                            <asp:ListItem>10</asp:ListItem>
                                            <asp:ListItem>11</asp:ListItem>
                                            <asp:ListItem>12</asp:ListItem>
                                            </asp:DropDownList>
                                            / <asp:DropDownList ID="ddlGuestExpiryYear" runat="server" CssClass="form-control" Width="82px" Enabled="False" >
                                                <asp:ListItem>-</asp:ListItem>
                                                <asp:ListItem>14</asp:ListItem>
                                                <asp:ListItem>15</asp:ListItem>
                                                <asp:ListItem>16</asp:ListItem>
                                                <asp:ListItem>17</asp:ListItem>
                                                <asp:ListItem>18</asp:ListItem>
                                                <asp:ListItem>19</asp:ListItem>
                                                <asp:ListItem>20</asp:ListItem>
                                                <asp:ListItem>21</asp:ListItem>
                                                <asp:ListItem>22</asp:ListItem>
                                                <asp:ListItem>23</asp:ListItem>
                                                <asp:ListItem>24</asp:ListItem>
                                                <asp:ListItem>25</asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="text-right" style="width: 143px">Security Code (CSC):</td>
                                    <td style="width: 17px">&nbsp;</td>
                                    <td>
                                        <asp:TextBox ID="tbxGuestCSC" runat="server" CssClass="form-control" Width="70px"></asp:TextBox>
                                    </td>
                                    
                                </tr>
                                <tr visible ="false">
                                    <td class="text-right" style="width: 143px">Payment ID :</td>
                                    <td style="width: 17px">&nbsp;</td>
                                    <td>
                                        <asp:TextBox ID="tbxPaymentID" runat="server" CssClass="form-control" Width="70px" ReadOnly="True"></asp:TextBox>
                                    </td>                                    
                                </tr>

                            </table>
                            
                        </fieldset>
                    </td>
                </tr>
                   <tr>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                            </tr>
                   <tr>
                    <td class="text-center" colspan="6" style="height: 22px">
                        <asp:Button ID="btnEditRoomDetails" runat="server" Text="Room Details" CssClass="btn btn-default btn-lg" OnClick="btnEditRoomDetails_Click" />
                        <asp:Button ID="btnSaveDetails2" runat="server" Text="Save Guest Details" CssClass="btn btn-default btn-lg" OnClick="btnSaveDetails2_Click" />
                        <ajaxToolkit:ConfirmButtonExtender ID="btnSaveDetails2_ConfirmButtonExtender" runat="server" ConfirmText="Confirm Update of Guest Record?" Enabled="True" TargetControlID="btnSaveDetails2">
                        </ajaxToolkit:ConfirmButtonExtender>
                    </td>
                </tr>
                <tr>
                    <td class="text-center" colspan="6" style="height: 22px">&nbsp;</td>
                </tr>
                <tr>
                    <td class="text-center" colspan="6" style="height: 22px">
                        <asp:Button ID="btnGoBackPanel2" runat="server" Text="< Go back" CssClass="btn btn-default btn-lg" OnClick="btnGoBackPanel2_Click"/>
                    </td>
                </tr>
            </table>
        </div>
    </div>
            </asp:Panel>

    <asp:Panel ID="pnlThirdStep" runat="server" Visible="false">
        <div class="panel panel-default" id="thirdStep" style="width: 800px; margin: 0 auto;">
        <div class="panel-heading">
            Modify Room Details
            </div>

            <div class="panel-body">
            <div class="alert alert-danger" id="searchErrorBox" style="display: none;">
            </div>
            <div class="alert alert-danger" id="deleteErrorBox" style="display: none;">
            </div>
            <div class="alert alert-success" id="successBox" style="display: none;">
            </div>

            <table class="nav-justified">
                <tr>
                    <td>
                        <table style="width:350px;margin:auto;" class="nav-justified">
                            <tr>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td class="text-right" style="width: 179px; height: 22px;">Room Number:</td>
                                <td style="width: 15px">&nbsp;</td>
                                <td>
                                    <asp:TextBox ID="tbxHotelRoomNumber2" runat="server" CssClass="form-control" Width="87px" MaxLength="5" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="text-right" style="width: 179px; height: 22px;">Room Type:</td>
                                <td style="width: 15px">&nbsp;</td>
                                <td>
                                    <asp:DropDownList ID="ddlGuestRoomType" runat="server" CssClass="form-control" Width="187px">
                                        <asp:ListItem Selected="True" Value="1">Single</asp:ListItem>
                                        <asp:ListItem Value="2">Queen</asp:ListItem>
                                        <asp:ListItem Value="3">Premium Suite</asp:ListItem>
                                        <asp:ListItem Value="4">Presidential Suite</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                    <td class="text-right" style="width: 165px">Balcony:</td>
                    <td style="width: 18px">&nbsp;</td>
                    <td style="width: 214px">
                        <asp:RadioButtonList ID="rblRoomBalcony" runat="server">
                            <asp:ListItem Value="1">Yes</asp:ListItem>
                            <asp:ListItem Value="0">No</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                    </tr>
                            <tr>
                                 <td class="text-right" style="width: 184px;">Smoking/Non-Smoking:</td>
                    <td style="width: 18px">&nbsp;</td>
                    <td>
                        <asp:RadioButtonList ID="rblRoomSmoke" runat="server">
                            <asp:ListItem Value="1">Smoking</asp:ListItem>
                            <asp:ListItem Value="0">Non-Smoking</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                            
                    <tr>
                    <td class="text-right" style="width: 184px">Low / High Level:</td>
                    <td style="width: 18px">&nbsp;</td>
                    <td>
                        <asp:RadioButtonList ID="rblRoomLevel" runat="server">
                            <asp:ListItem Value="0">Low Level</asp:ListItem>
                            <asp:ListItem Value="1">High Level</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                     <td>&nbsp;</td>
                     <td>&nbsp;</td>
                     <td>&nbsp;</td>
                </tr>

                <tr>
                    <td class="text-center" colspan="6" style="height: 22px">
                        <asp:Button ID="btnCheckGuestRoom" runat="server" Text="Check Rooms" CssClass="btn btn-default btn-lg" OnClick="btnCheckGuestRoom_Click" />
                        
                    </td>
                </tr>
                <tr>
                    <td class="text-center" colspan="6" style="height: 22px">&nbsp;</td>
                </tr>
                <tr>
                    <td class="text-center" colspan="6" style="height: 22px">
                        <asp:Button ID="btnGoBackPanel3" runat="server" Text="< Go back" CssClass="btn btn-default btn-lg" OnClick="btnGoBackPanel3_Click"/>
                    </td>
                </tr>
            </table>
           </table>
        </div>
            </div>
    
            </asp:Panel>

         <asp:Panel ID="pnlFourthStep" runat="server" Visible="false">
        <div class="panel panel-default" id="fourthStep" style="width: 800px; margin: 0 auto;">
        <div class="panel-heading">
            Select Room
        </div>

        <div class="panel-body">
            <div class="alert alert-danger" id="Div2" style="display: none;">
            </div>

            <table class="nav-justified" style="width: 781px">
                <tr>
                    <td>
                        <asp:GridView ID="gvData" runat="server" Width="765px" class="table table-hover">
                            <Columns>
                                <asp:CommandField ShowSelectButton="True" />
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
                 <tr>
                    <td class="text-center" colspan="6" style="height: 22px">
                        <asp:Button ID="btnSaveDetails" runat="server" Text="Save Guest Details" CssClass="btn btn-default btn-lg" OnClick="btnSaveDetails_Click" />
                        
                        <ajaxToolkit:ConfirmButtonExtender ID="btnSaveDetails_ConfirmButtonExtender" runat="server" ConfirmText="Confirm Update of Guest Record?" Enabled="True" TargetControlID="btnSaveDetails">
                        </ajaxToolkit:ConfirmButtonExtender>
                        
                    </td>
                </tr
                <tr>
                </tr>
                <tr>
                    <td class="text-center" colspan="6" style="height: 22px">
                        <asp:Button ID="btnGoBackPanel4" runat="server" Text="< Go back" CssClass="btn btn-default btn-lg" OnClick="btnGoBackPanel4_Click"/>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </asp:Panel>

    <asp:Panel ID="pnlFifthStep" runat="server" Visible="false">
        <div class="panel panel-default" id="fifthStep" style="width: 800px; margin: 0 auto;">
        <div class="panel-heading">
            Save Details Success
            </div>

        <div class="panel-body">
            <div class="alert alert-success" id="successbox" style="text-align:center;">
                Update Details of Guest is Successful!
            </div>

            <table class="nav-justified">
                <tr>
                    <td>
                        <table style="width:350px;margin:auto;" class="nav-justified">
                            <tr>
                    <td class="text-center" colspan="6" style="height: 22px">
                        <asp:Button ID="btnGoBackPanel5" runat="server" Text="< Go back" CssClass="btn btn-default btn-lg" OnClick="btnGoBackPanel5_Click"/>
                    </td>
                </tr>
                
            </table>
           </table>
        </div>
    </div>
            </asp:Panel>

    <script type="text/javascript">

        function transitionToFirstStep() {
            $('#firstStep').hide().show('slide', { direction: 'left', easing: 'easeOutQuart', duration: 600 });
        }

        function transitionToSecondStep() { 
            $('#secondStep').hide().show('slide', { direction: 'right', easing: 'easeOutQuart', duration: 600 });
        }
        function transitionToThirdStep() {
            $('#thirdStep').hide().show('slide', { direction: 'right', easing: 'easeOutQuart', duration: 600 });
        }
        function transitionToFourthStep() {
            $('#fourthStep').hide().show('slide', { direction: 'right', easing: 'easeOutQuart', duration: 600 });
        }

        function transitionToFifthStep() {
            $('#fifthStep').hide().show('slide', { direction: 'right', easing: 'easeOutQuart', duration: 600 });
        }
    </script>
</asp:Content>
